package ifswitch;

import java.util.Scanner;

public class test4 {
    public static void main(String[] args){
        int price = 1000;
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的会员等级");
        int leaver = sc.nextInt();
        if (leaver >=1 && leaver <=3){
            if (leaver ==1){
                System.out.println("会员价格为" + (price * 0.9));
            }
            else if(leaver ==2){
                System.out.println("会员价格为" + (price * 0.8));
            }
            else if (leaver ==3){
                System.out.println("会员价格为" + (price * 0.7));
            }
        }
        else {
            System.out.println("不打折，要打也是骨折");
        }
    }
}
